#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int a = 40, c = 212, outcom = 0;
    outcom = (-8 + 22)*a - 10 + c/2;
    printf("%d", outcom);
    return 0;
}